﻿// Start the timer which will redraw elements on the canvas
function StartTimer() {
    StopTimer();
    _Timer = window.setInterval("Tick()", _TimerInterval);
}

// Stop the timer which will redraw elements on the canvas
function StopTimer() {
    if (_Timer != null) {
        window.clearInterval(_Timer);
        _Timer = null;
    }
}

// Gets called every 10th of a second when the game is motion ********
function Tick() {
    gameTick();
}